package org.shj.hadoop.rpc;

import java.net.InetSocketAddress;

import org.apache.hadoop.conf.Configuration;
import org.apache.hadoop.ipc.RPC;

public class RPCClient {

	public static void main(String[] args) throws Exception {
		Bizable proxy = RPC.getProxy(Bizable.class, 123456, new InetSocketAddress("192.168.56.1", 10240),
				new Configuration());
		String str = proxy.sayHi("tom");
		System.out.println(str);
		RPC.stopProxy(proxy);
	}
}
